package pl.edu.pw.perg.compinfodb.entities;

import java.io.Serializable;

public class ComplexElement implements Serializable {

	private Long peId;
	private Long veId;
	
	public Long getPeId() {
		return peId;
	}
	public void setPeId(Long peId) {
		this.peId = peId;
	}
	public Long getVeId() {
		return veId;
	}
	public void setVeId(Long veId) {
		this.veId = veId;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (obj instanceof ComplexElement) {
			ComplexElement ce = (ComplexElement) obj;
			if(ce.peId.equals(peId) && ce.veId.equals(veId))
				return true;
			else 
				return false;						
		}
		return false;
	}
}
